package interpreter;

import java.io.FileReader;
import java.io.PushbackReader;
import interpreter.logo.lexer.*;
import interpreter.logo.parser.*;
import interpreter.logo.node.*;


public class Compiler {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
            System.out.println("Se esta haciendo el analisis lexico y semantico =)");


            // Create a Parser instance.
            Parser p =
                    new Parser(
                    new Lexer(
                    new PushbackReader(
                    new FileReader("/Users/rafaelag/test.in"), 1024)));


            // Parse the input.
            Start tree = p.parse();

            System.out.print(tree);


            // Apply the translation.
            //tree.apply(new Translation());
            //Esto lo vamos a ver para el final =)
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }

	}

}
